package com.xw.service;

import com.xw.model.News;
import com.xw.vo.NewsVo;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface NewsService {
    List<NewsVo> findByWhere(String newsName);

    Map add(HttpSession session, News news);

    Map del(String id);

    Map edit(News news);

    News findByKeyId(String id);

    Map findNews(Integer page, Integer limit);

    Map findNewsById(String id);
}
